cmake_minimum_required(VERSION 3.28)
project(SynergyDemo)

set(CMAKE_CXX_STANDARD 11)

include_directories(/usr/include/opencv4)

add_library(common_objs OBJECT
        loader.cpp
)

add_executable(syn_test main.cpp
)

add_executable(
        endpoint
        endpoint.cpp
)

add_executable(
        edgepoint
        edgepoint.cpp
)

add_dependencies(syn_test common_objs)
add_dependencies(endpoint common_objs)
add_dependencies(edgepoint common_objs)

target_link_libraries(syn_test -lboost_filesystem -lpthread -lopencv_core -lopencv_highgui -lopencv_imgcodecs common_objs)
target_link_libraries(endpoint -lboost_filesystem -lpthread -lopencv_core -lopencv_highgui -lopencv_imgcodecs common_objs)
target_link_libraries(edgepoint -lboost_filesystem -lpthread -lopencv_core -lopencv_highgui -lopencv_imgcodecs common_objs)
